home *** CD-ROM | disk | FTP | other *** search
- Path: news.dal.ca!news
- From: keichele@ac.dal.ca (Klaus Eichele)
- Newsgroups: comp.lang.c++
- Subject: Re: Can't Display PopUp Window
- Date: Sun, 31 Mar 1996 05:15:28 GMT
- Organization: Dalhousie University
- Message-ID: <4jkmbh$r9o@News.Dal.Ca>
- References: <4jit49$pea@news.asiaonline.net>
- NNTP-Posting-Host: rewasylishen.chem.dal.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- samsona@asiaonline.net (Samson Lin) wrote:
-
- >Hi,
-
- >I am writing a Window C program. I meet a problem in displaying popup
-
- >window.
-
- <SNIP>
- >If I repeat the following steps, I can always wake up the LOAD/SAVE
- >popup window :
-
- > (1) Run Borland C++ IDE
- > (2) Run phone book program
- >
- > OR
-
- > (1) Run Borland C++ IDE
- > (2) Quit Borland C++ IDE
- > (3) Run phone book program
-
- >If I don't run Borland C++ beforehand, the program still works but I
- >can't see the LOAD/SAVE popup window when I click the LOAD/SAVE menu
- >item.
-
- >Why the above case happens? My pc configuration is Pentium 100,
- >8MB ram, Chinese Win v3.1 with Win32s.
-
- Hi,
- this sounds like a problem typical of a program requiring the Borland
- Custom Control library (bwcc.dll) to be loaded but not having the
- program itself do so. Your dialog box template probably has some of
- Borland's controls (e.g. buttons etc.). If you have the Borland IDE
- running, it loads the bwcc.dll for you and your program "profits" from
- that. Otherwise, because you don't tell Windows to load the DLL, the
- creation of your dialog box fails.
-
- One of the cures:
- 1) quite early in your WinMain(), call:
- BWCCGetVersion();
- This tells Windows that bwcc.dll is required and so it gets loaded
- for you.
- (alternatively, because you are using MessageBox(), you could call
- the equivalent Borland function BWCCMessageBox())
- 2) furthermore you need to include the proper header file:
- #include <bwcc.h>
- 3) finally, you need to include the following import library in your
- project file (just the same way you add *.c or *.cpp files):
- bwcc.lib
- (this should be in your bc45\lib directory)
-
- Good Luck,
- Klaus
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Klaus Eichele keichele@is.dal.ca
- http://is.dal.ca/~keichele/keichele.html
-
-